package com.itheima.im.socket.provider;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by 13687 on 2017/6/17.
 * 1. 创建数据库表
 */

public class DBhelper extends SQLiteOpenHelper {
	private static final String DBNAME = "imdb";
	private static final int   DB_VERSION = 1;

	public DBhelper(Context context) {
		super(context,DBNAME,null, DB_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
        db.execSQL(ContractsTable.CREATE_TABLE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}
}
